module.exports = function (o) {
  wx.getLocation({
    type: "wgs84",
    success: function (e) {
      "function" == typeof o && o(e);
    },
    fail: function () {
      wx.getSetting({
        success: function (e) {
          console.log(e), 0 == e.authSetting["scope.userLocation"] && wx.showModal({
            title: "提示",
            content: "您暂未授权位置信息无法正常使用,请在（右上角 - 关于 - 右上角 - 设置）中开启位置信息授权后，下拉刷新即可正常使用"
          });
        }
      });
    },
    complete: function (e) {}
  });
};